# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AdSense.V14.Model.ReportingMetadataEntry do
  @moduledoc """


  ## Attributes

  *   `compatibleDimensions` (*type:* `list(String.t)`, *default:* `nil`) - For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to.
  *   `compatibleMetrics` (*type:* `list(String.t)`, *default:* `nil`) - The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with.
  *   `id` (*type:* `String.t`, *default:* `nil`) - Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric.
  *   `kind` (*type:* `String.t`, *default:* `adsense#reportingMetadataEntry`) - Kind of resource this is, in this case adsense#reportingMetadataEntry.
  *   `requiredDimensions` (*type:* `list(String.t)`, *default:* `nil`) - The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
  *   `requiredMetrics` (*type:* `list(String.t)`, *default:* `nil`) - The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
  *   `supportedProducts` (*type:* `list(String.t)`, *default:* `nil`) - The codes of the projects supported by the dimension or metric this reporting metadata entry describes.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :compatibleDimensions => list(String.t()) | nil,
          :compatibleMetrics => list(String.t()) | nil,
          :id => String.t() | nil,
          :kind => String.t() | nil,
          :requiredDimensions => list(String.t()) | nil,
          :requiredMetrics => list(String.t()) | nil,
          :supportedProducts => list(String.t()) | nil
        }

  field(:compatibleDimensions, type: :list)
  field(:compatibleMetrics, type: :list)
  field(:id)
  field(:kind)
  field(:requiredDimensions, type: :list)
  field(:requiredMetrics, type: :list)
  field(:supportedProducts, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.AdSense.V14.Model.ReportingMetadataEntry do
  def decode(value, options) do
    GoogleApi.AdSense.V14.Model.ReportingMetadataEntry.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.AdSense.V14.Model.ReportingMetadataEntry do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
